Flags for Sprite Hit Testing
You can pass the following flags to the
SpriteWorldHitTest
function
SpriteWorldHitTest
and the
SpriteHitTest
function
SpriteHitTest
to control sprite hit testing.
enum {
spriteHitTestBounds = 1L << 0,
spriteHitTestImage = 1L << 1
};
Flag descriptions
-
spriteHitTestBounds
-
The specified location must be within the sprite's bounding box.
-
spriteHitTestImage
-
If both this flag and
spriteHitTestBounds
are set, the specified location must be within the shape of the sprite's image.
© 1997 Apple Computer, Inc.Previous | Chapter Top | Chapter Contents | Next